<?php


namespace app\zhongcan\validate;


use think\Validate;

class NavValidate extends  Validate
{
    protected $rule = [
        'title' => 'require|max:30|min:1',
    ];


    protected $message=[
        'title.require' => '标题不能为空',
        'title.max' => '标题不能超过30个字',
        'title.min' => '标题至少一个字',
    ];

    protected $scene=[
        'add' => ['title','p_id']
    ];
}